<?php
class ArticleAttachModel extends RelationModel{

	protected $_link=array(
		'article'=>array(
			'mapping_type'=>BELONGS_TO,
			'foreign_key'=>'articleid',
			'as_fields'=>'id,typeid,title,pic,addtime',
		),
	);

}